{* Template Name:评论发布框 *}
<h5 id="comment">留言评论</h5>
<div class="comment-post" id="respond">
<form id="commentform" name="commentform" action="{$article.CommentPostUrl}" method="post" class="form-horizontal" role="form" target="_self">
	<input type="hidden" name="inpId" id="inpId" value="{$article.ID}" />
	<input type="hidden" name="inpRevID" id="inpRevID" value="0" />
	<div class="form-group mb-1">
		<textarea name="txaArticle" id="txaArticle" rows="3" tabindex="1" class="form-control" placeholder="发表您的评论"></textarea>
	</div>
{if $user.ID>0}
	<input type="hidden" name="inpName" id="inpName" value="{$user.StaticName}" />
	<input type="hidden" name="inpEmail" id="inpEmail" value="{$user.Email}" />
	<input type="hidden" name="inpHomePage" id="inpHomePage" value="{$user.HomePage}" />
{else}
	<div class="input-group mb-1">
		<div class="input-group-prepend">
	      <span class="input-group-text">称呼</span>
	    </div>
		<input type="text" name="inpName" id="inpName" placeholder="您的名字" value="{$user.StaticName}" tabindex="2" class="form-control">
	</div>
	<div class="input-group mb-1">
		<div class="input-group-prepend">
	      <span class="input-group-text">邮箱</span>
	    </div>
		<input type="email" name="inpEmail" id="inpEmail" placeholder="您的邮箱" value="{$user.Email}" tabindex="3" class="form-control">
	</div>
	<div class="input-group mb-1">
		<div class="input-group-prepend">
	      <span class="input-group-text">网址</span>
	    </div>
		<input type="text" name="inpHomePage" id="inpHomePage" placeholder="http(s)://" value="{$user.HomePage}" tabindex="4" class="form-control">
	</div>
{/if}
	<div class="form-group">
		<button type="submit" class="btn btn-rujue" name="sumbit" tabindex="7" onclick="return zbp.comment.post()">提交</button>
	</div>
</form><!-- Comment Form End -->
</div><!-- #comments -->